<template>
<h1>EL-布局组件</h1>
<!--    一行一共是 24列-->
  <el-row :gutter="10">
    <el-col :span="6">哈哈哈</el-col>
    <el-col :span="6" style="background-color: #13ce66">哈哈哈</el-col>
    <el-col :span="6">哈哈哈</el-col>
    <el-col :span="6" style="background-color: #13ce66">哈哈哈</el-col>
  </el-row>
  <h3>两张图</h3>
  <el-row :gutter="10">
   <el-col :span="12"><img src="rich.jpg" style="width: 100%;"></el-col>
   <el-col :span="12"><img src="rich.jpg" style="width: 100%;"></el-col>
  </el-row>

  <h3>六张图</h3>
  <el-row :gutter="10">
   <el-col :span="4"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
   <el-col :span="4"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
   <el-col :span="4"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
   <el-col :span="4"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
   <el-col :span="4"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
   <el-col :span="4"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
  </el-row>
  <h3>列偏移</h3>
  <el-row :gutter="10">
   <el-col :offset="4" :span="20"><img src="2024.png" style="width: 100%;"></el-col>
  </el-row>
  <!-- 1.图片2024.png占12列,在页面居中位置 -->
  <el-row :gutter="10" >
   <el-col :offset="6" :span="12"><img src="2024.png"  style="width: 100%;" alt=""  ></el-col>
  </el-row>
  <!-- 2.有三张图片2024.png,他们的宽度比为1:2:3 -->
  <el-row :gutter="10">
   <el-col :span="4"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
   <el-col :span="8"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
   <el-col :span="12"><img src="2024.png"  style="width: 100%;" alt=""></el-col>
  </el-row>
  <!-- 3.有8列,均分一行,每列显示的内容为1 2 3...8 -->
  <el-row :gutter="10">
    <el-col :span="3">1</el-col>
    <el-col :span="3">2</el-col>
    <el-col :span="3">3</el-col>
    <el-col :span="3">4</el-col>
    <el-col :span="3">5</el-col>
    <el-col :span="3">6</el-col>
    <el-col :span="3">7</el-col>
    <el-col :span="3">8</el-col>
  </el-row>
  <hr>
<!--  布局嵌套-->
  <el-row :gutter="10">
   <el-col :span="12" style="border: 2px solid red">12</el-col>
   <el-col :span="12" style="border: 2px solid green">
     <el-row :gutter="10">
      <el-col :span="8" style="border: 3px solid blue">8</el-col>
      <el-col :span="8" style="border: 3px solid blue">8</el-col>
      <el-col :span="8" style="border: 3px solid blue">8</el-col>
     </el-row>
   </el-col>
  </el-row>
</template>
<script setup>

</script>

<style scoped>

</style>